<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-12-14
 * Time: 10:48
 */

namespace app\index\validate;


use think\Validate;

class Wupdatepassword extends Validate
{
    protected $rule = [
        'u_id'             => 'require',
        'oldpassword'      => 'require',
        'password'         => 'confirm:confirm_password',
        'confirm_password' => 'confirm:password',
        'type'             => 'require'
    ];

    protected $message = [
        'u_id.require'              => '用户ID不能为空',
        'oldpassword.require'       => '旧密码不能为空',
        'password.confirm'          => '两次输入密码不一致',
        'confirm_password.confirm'  => '两次输入密码不一致',
        'type.require'              => '修改类型不能为空',
    ];
}